package com.sun.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/21 13:40
 * @FileName: PurchaseHead
 * @Description: ""
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PurchaseHead extends Model<PurchaseHead> {
    /**
     * 采购单号
     */
    @TableId()
    private Long purchaseId;
    /**
     * 日期
     */
    private LocalDateTime purchaseTime;
    /**
     * 采购员
     */
    private Long userId;
    /**
     * 供应商id
     */
    private Long supplierId;
    /**
     * 金额
     */
    private Double amount;
    /**
     * 状态 0-采购订单生成 1-采购订单确认 2-采购完成 3-入库
     */
    private Integer status;

    private Long receiptId;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.purchaseId;
    }
}
